﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Itop.YHPC
{
    public partial class index : BasePage
    {
       
        public string getDate() {
            return DateTime.Now.ToString("yyyy年MM月dd日 ");
        }

        public string GetWFList()
        {
            string rst = "";
            string fmt = "<li><a  target=\"mainframe\"  href=\"workflow/workflow.aspx?wfid={0}\">{1}</a></li>";
            DataRow[] rows = BasePage.GetUserProgs(null).Select("ParentID='1'");
            foreach (DataRow prog in rows)
            {
                rst += string.Format(fmt, prog["id"].ToString(), prog["ProgName"].ToString())+"\n";
            }
            return rst;
        }
    }
}
